package com.huilian.iotbox.admin.wap.service;

import com.github.pagehelper.PageInfo;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.dto.CommodityGroupDto;
import com.huilian.iotbox.data.po.CommodityGroup;

import java.util.List;

public interface  CommodityGroupService {

    PageInfo<CommodityGroup> findByUserIdAndType(CommodityGroupDto groupDto);

    Integer insertOrUpdate(CommodityGroup commodityGroup);

    ServerResponse deleteById(CommodityGroupDto commodityGroupDto);

    int insert(CommodityGroup newCommodityGroup);

    CommodityGroup findOneCommodityGroupByCondition(CommodityGroupDto commodityGroupDto);

    ServerResponse getDefaultCommodityGroup(CommodityGroupDto commodityGroupDto);

    CommodityGroup getOneCommodityGroupByUserIdAndType(CommodityGroupDto groupDto);
}

